import request from '@/utils/request'

const BASEURL = '/admin/core/userInfo'
/**会员列表 */
export function getPageList(page, limit, searchObj) {
  return request({
    url: `${BASEURL}/listPage/${page}/${limit}`,
    method: 'post',
    data: searchObj,
  })
}

/**锁定与解锁 */
export function lock(id, status) {
  return request({
    url: `${BASEURL}/lock/${id}/${status}`,
    method: 'put',
  })
}
/**会员登录日志 */
export function getUserLoginRecordTop50(userId) {
  return request({
    url: `/admin/core/user-login-record/listTop50/${userId}`,
    method: 'get',
  })
}
